function y = g_wh(x)
% Generalized White & Holst function(c=100)
%x0=[-1.2, 1, -1.2, 1,..., -1.2, 1]
%fmin=n/2
%Author:wang zhujun
n=length(x);
z=ones(1,n-1);
for ii=1:n-1
    z(ii)=(10*(x(ii+1)-x(ii)^3))^2+(1-x(ii))^2;
end
y=sum(z);